// by Xeno

private ["_val", "_pvar_name", "_body"];
if (!isServer) exitWith {};

_pvar_name = _this;

_val = d_placed_objs_store getVariable _pvar_name;

if (!isNil "_val") then {
	deleteMarker (_val select 1);
	if (!isNull (_val select 0)) then {deleteVehicle (_val select 0)};
	d_placed_objs_store setVariable [_pvar_name, nil];
};

_body = missionNamespace getVariable _pvar_name;
if (!isNil "_body") then {
	if (!isNull _body) then {deleteVehicle _body};
};